package ltd.hxya.novel.admin.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import ltd.hxya.novel.admin.entity.Operation;
import ltd.hxya.novel.admin.entity.Role;
import ltd.hxya.novel.admin.entity.User;
import ltd.hxya.novel.common.bean.BaseEntity;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVo extends BaseEntity {


    @ApiModelProperty(value = "管理员id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "管理员姓名")
    private String nickName;

    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "用户头像")
    private String image;

    @ApiModelProperty(value = "性别 0:男， 1：女")
    private Boolean sex;

    @ApiModelProperty(value = "状态 0:停用， 1：正常")
    private Boolean status;

    @ApiModelProperty(value = "创建当前管理员的管理员")
    private Long createUserId;

    @ApiModelProperty(value = "修改当前管理员信息的管理员id")
    private Long updateUserId;

    //角色信息
    private Role role;

    /**
     * 角色组Id
     */
    private Integer[] roleIds;

    /**
     * 角色组List集合
     */
    private List<Role> roleList;

    /**
     * 角色id
     */
    private Long roleId;

    //用户的权限信息
    private List<Operation> operation;

}
